package com.pig4cloud.pig.ds.biz_a.controller;

import com.pig4cloud.pig.common.biz.domain.biza.req.ACreateCommand;
import com.pig4cloud.pig.common.biz.domain.biza.resp.ACreateBizRespDTO;
import com.pig4cloud.pig.common.core.util.R;
import com.pig4cloud.pig.ds.biz_a.service.BizAService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description : TODO
 * @author: lingnan
 * @date: 2023/6/19
 * @version: 1.0
 */
@RestController
@RequestMapping("a")
@RequiredArgsConstructor
public class BizAController {

	private final BizAService bizAService;


	@RequestMapping("create")
	public R<ACreateBizRespDTO> createA(ACreateCommand param) {
		return R.ok(bizAService.createA(param));
	}

}
